package com.syni.mdd.yhd.common.all.dao.jpa;

import com.syni.mdd.yhd.common.all.dao.BaseJPADao;
import com.syni.mdd.yhd.common.all.entity.groupBuy.BmsThirdCode;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Set;

public interface BmsThirdCodeDao extends BaseJPADao<BmsThirdCode,Integer> {
    List<BmsThirdCode> findByAndBusinessIdAndIsMatch(Integer businessId, Integer isMatch, Pageable pageable);

    List<BmsThirdCode> findByOrderIdAndIsMatch(Integer orderId, Integer isMatch, Pageable pageable);

    List<BmsThirdCode> findByOrderIdAndIsMatch(Integer orderId, Integer isMatch);

    List<BmsThirdCode> findByVerNoInAndOrderId(Set verNos, Integer orderId);

    List<BmsThirdCode> findByBusinessIdAndVerNo(Integer businessId,String verNo);
}
